package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.athleteTrapDateDto;
import com.ruoyi.system.domain.athleteTrapTargetDto;
import com.ruoyi.system.domain.vo.athleteSkeetTargetVo;
import com.ruoyi.system.domain.vo.athleteSkeetVo;
import com.ruoyi.system.domain.vo.athleteTrapTargetVo;
import com.ruoyi.system.domain.vo.athleteTrapVo;
import com.ruoyi.system.mapper.athleteTrapMapper;
import com.ruoyi.system.service.athleteTrapService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class athleteTrapServiceImpl implements athleteTrapService {
    @Resource
    athleteTrapMapper trapMapper;
    @Override
    public List<athleteTrapDateDto> getTrapByDate(athleteTrapVo athleteTrapVo) {
        return trapMapper.selectDailyTrainingStats(athleteTrapVo);
    }

    @Override
    public List<athleteTrapTargetDto> getTrainingStatsByDateAndId(athleteTrapTargetVo athleteTrapTargetVo) {
        return trapMapper.selectTrainingStats(athleteTrapTargetVo);
    }
}
